<?php

namespace App\Kuafu\Shop\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ShopCodeEnum extends BaseCodeEnum
{
    public const LEADING_ZERO = 1;
    //店铺模块-输入异常403XXX
    public const ERR_SHOP_NAME_NOT_INPUT           = 403001;
    public const ERR_SHOP_NAME_EXIST               = 403002;
    public const ERR_SHOP_NAME_IS_EXIST            = 403003;
    public const ERR_SHOP_NAME_TO_LANG             = 403004;
    public const ERR_SHOP_ID_NO_EXIST              = 403005;
    public const ERR_SHOP_DB                       = 403006;
    public const ERR_SHOP_INPUT                    = 403007;
    public const ERR_LOGO_NOT_EXIST                = 403008;
    public const ERR_SHOP_BIND                     = 403009;
    public const ERR_MENU_OFFLINE                  = 403010;
    public const ERR_SHOP_INSERT                   = 403011;
    public const ERR_SHOP_UPDATE                   = 403012;
    public const ERR_SHOP_NO_MENU                  = 403013;
    public const ERR_SHOP_NO_TARGET                = 403014;
    public const ERR_SHOP_CONFIG_INFO              = 403015;
    public const ERR_SHOP_SET_CONFIG               = 403016;
    public const ERR_SHOP_INSERT_PRINTER           = 403017;
    public const ERR_GET_PRINTER                   = 403018;
    public const ERR_DEL_PRINTER                   = 403019;
    public const ERR_UPDATED_PRINTER               = 403020;
    public const ERR_BANS_SERIAL_NUMBER            = 403021;
    public const ERR_BANS_INPUT_SERIAL_NUMBER      = 403022;
    public const ERR_BANS_HAS_SERIAL_NUMBER        = 403023;
    public const ERR_ADD_SHOP_PAY_PARAM            = 403024;
    public const ERR_GET_ADDRESS                   = 403025;
    public const ERR_PRINTER_NOT_FOUND             = 403026;
    public const ERR_AREA_REL                      = 403027;
    public const SHOP_STATUS_BAN                   = 403028;
    public const SHOP_STATUS_PREPARE               = 403029;
    public const SHOP_PREPARE_NOT_BAN              = 403030;
    public const SHOP_APPID_NOT_RIGHT              = 403031;
    public const ERR_SHOP_CODE_EMPTY               = 403032;
    public const ERR_SHOP_CAMERA                   = 403033;
    public const ERR_SHOP_CAMERA_TRIPLE_TYPE_EMPTY = 403034;
    public const FAIL_GET_SHOP_PRODUCT_CONFIG      = 403035;
    public const ERR_NO_ACCESS_ERROR               = 403036;
    public const ERR_SHOP_MOBILE                   = 403037;
    public const ERR_SHOP_INSERT_MONITOR_DATA      = 403038;
    public const ERR_NOT_FOUND_MATERIAL_TEMPLATE   = 403039;
    public const ERR_CREATE_MATERIAL_TEMPLATE      = 403040;
    public const ERR_INPUT_MATERIAL_TEMPLATE       = 403041;
    public const ERR_NOT_FOUND_SHOP_ARCHIVES       = 403042;
    public const ERR_NOT_FOUND_TEMPLATE            = 403043;
    public const ERR_UPDATE_TEMPLATE               = 403044;


    public const ERR_SHOP_BIND_PAY    = 503001;
    public const ERR_SHOP_NULL_MENU   = 503002;
    public const ERR_SHOP_CODE_EXISTS = 503003;
    public const ERR_SHOP_LOCK        = 503004;
    public const ERR_SHOP_CODE_IN_MAX = 503005;
    public const ERR_SHOP_CODE_REPEAT = 503006;


    public const CODE_TEXT = [
        self::ERR_SHOP_NAME_EXIST               => '该店铺名已经存在,请修改店铺名',
        self::ERR_SHOP_NAME_NOT_INPUT           => '请输入店铺名称',
        self::ERR_SHOP_NAME_IS_EXIST            => '该店铺名已经存在,请修改店铺名',
        self::ERR_SHOP_ID_NO_EXIST              => '该店铺不存在',
        self::ERR_SHOP_DB                       => '店铺操作失败',
        self::ERR_SHOP_INPUT                    => '参数错误',
        self::ERR_SHOP_NAME_TO_LANG             => '店铺名称过长',
        self::ERR_LOGO_NOT_EXIST                => '请上传店铺Logo',
        self::ERR_SHOP_BIND                     => '店铺绑定菜单失败',
        self::ERR_MENU_OFFLINE                  => '菜单未上架',
        self::ERR_SHOP_INSERT                   => '添加店铺失败',
        self::ERR_SHOP_UPDATE                   => '编辑店铺失败',
        self::ERR_SHOP_NO_MENU                  => '店铺没有绑定的菜单',
        self::LEADING_ZERO                      => 4,
        self::ERR_SHOP_NO_TARGET                => '目标设置失败',
        self::ERR_SHOP_CONFIG_INFO              => '获取配置信息失败',
        self::ERR_SHOP_SET_CONFIG               => '设置配置信息失败',
        self::ERR_SHOP_INSERT_PRINTER           => '添加打印机失败',
        self::ERR_GET_PRINTER                   => '获取打印机失败',
        self::ERR_DEL_PRINTER                   => '删除打印机失败',
        self::ERR_UPDATED_PRINTER               => '修改打印机失败',
        self::ERR_BANS_SERIAL_NUMBER            => '绑定POS设备号失败',
        self::ERR_BANS_INPUT_SERIAL_NUMBER      => '请输入设备号',
        self::ERR_BANS_HAS_SERIAL_NUMBER        => '该店铺已绑定设备号',
        self::ERR_GET_ADDRESS                   => '逆查询地址解析失败',
        self::ERR_ADD_SHOP_PAY_PARAM            => '新增支付配置参数错误',
        self::ERR_PRINTER_NOT_FOUND             => '此设备记录不存在',
        self::ERR_SHOP_BIND_PAY                 => '店铺已绑定该支付配置',
        self::ERR_SHOP_NULL_MENU                => '店铺未绑定菜单',
        self::SHOP_STATUS_BAN                   => '该店铺已被禁用，请联系管理员',
        self::ERR_SHOP_CODE_EXISTS              => '店铺code已存在',
        self::ERR_AREA_REL                      => '省市区关联数据非法',
        self::ERR_SHOP_LOCK                     => '当前访问用户过多，请稍后再试',
        self::SHOP_STATUS_PREPARE               => '店铺筹备中',
        self::SHOP_PREPARE_NOT_BAN              => '筹备中门店不允许禁用',
        self::SHOP_APPID_NOT_RIGHT              => '当前门店已升级，请前往新的小程序下单 .',
        self::ERR_SHOP_CODE_IN_MAX              => '门店编号必须小于当前生成的门店编号',
        self::ERR_SHOP_CODE_REPEAT              => '门店编号重复',
        self::ERR_SHOP_CODE_EMPTY               => '门店编号不能为空',
        self::ERR_SHOP_CAMERA                   => '获取摄像头流地址失败',
        self::ERR_SHOP_CAMERA_TRIPLE_TYPE_EMPTY => '获取摄像头三元组失败(三元组不存在)',
        self::FAIL_GET_SHOP_PRODUCT_CONFIG      => "获取门店商品配置失败",
        self::ERR_NO_ACCESS_ERROR               => "没有访问权限",
        self::ERR_SHOP_MOBILE                   => "门店手机号格式不正确",
        self::ERR_SHOP_INSERT_MONITOR_DATA      => '店铺监控设备记录插入失败',
        self::ERR_NOT_FOUND_MATERIAL_TEMPLATE   => '未找到模版信息',
        self::ERR_CREATE_MATERIAL_TEMPLATE      => '创建物料素材模版失败',
        self::ERR_INPUT_MATERIAL_TEMPLATE       => '创建物料素材模版参数缺失',
        self::ERR_NOT_FOUND_SHOP_ARCHIVES       => '未找到门店附加信息',
        self::ERR_NOT_FOUND_TEMPLATE            => '未找到模版记录信息',
        self::ERR_UPDATE_TEMPLATE               => '修改模版记录失败',
    ];
}
